﻿<%@ Page Title="主页" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="NuaTarDoneng._Default" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
    <link href="~/Styles/Site.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        $(document).ready(function () {
            var bcs;
            $("a.A_See1").mouseenter(function () {
            
                $(this).animate({ 'backgroundColor': '#696969' }, 200);

            });
            $("a.A_See1").mouseout(function () {
                $(this).animate({ 'backgroundColor': '#ffffff' }, 200);

            });
            $("#imgtg").click(function () {

                $("#imgMe").toggle(1000);
            });
        });

    </script>

    <style type="text/css">
    
    .style23
    {
        width: 200px;
        line-height:24px;
        padding:0px;
        margin:0px;
        border:none;
        
       
    }
            
      
   
        .style219
        {
            border-style: none;
            border-color: inherit;
            border-width: medium;
            width: 100%;
            padding: 0px;
            font-family: 仿宋, Arial, Helvetica, sans-serif;
            color: #000000;
            background-color: #FFFFFF;
        }
            
      
   
        .style221
        {
            font-family: 楷体;
            background-color: #FFFF00;
        }
            
      
   
        .style223
        {
            font-size: small;
        }
        .style225
        {
            font-family: 仿宋;
        }
            


   
        .style234
        {
            color: silver;
        }
            


   
        </style>
    
    </asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">

        <asp:DataList ID="DataList1" runat="server" DataKeyField="blogID" 
            DataSourceID="SqlDataSource1" RepeatColumns="1" 
            RepeatDirection="Horizontal" RepeatLayout="Flow">
     <ItemTemplate>
    <div style="line-height:24px;margin:0px 0px 0px 0px">
    <div class="DateFlag" style="color:White">
    <%# getShortTime( Convert.ToString(Eval("blogTime"))) %>
    </div>
    </div>
    <div class="mainContent">
                <table class="style219">
                    <tr>
                        <td>
                           <h2 style="background:rgba(255, 0, 0, 0.46)"><%# Eval("blogTitle") %></h2> 
                        </td>
                    </tr>
                  
                    
                    <tr>
                        <td style="font-size:medium">
                             
                             <asp:Panel ID="Panel1" runat="server">
<%# getRealContentShort( (string)Eval("blogContent")) %>
                             </asp:Panel>
                        </td>
                    </tr>
                    <tr>
                        <td style="font-size: small;background:rgba(112, 147, 62, 0.50)">关键字：
                           <%# Eval("keyword") %>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right; font-size: small; color: #999999;" 
                            class="style225">
                            分类：<%# getSortNameById((string)Eval("SortID"))%>&nbsp;&nbsp; <a href='Article.aspx?id=<%# Eval("blogID") %>' class="style234" style="color:#505050"><span class="style221">阅读全文</span></a>
                        </td>
                    </tr>
        </table>
                
    </div> 
            </ItemTemplate>
            <SeparatorStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" 
                Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left" 
                VerticalAlign="Middle" />
        </asp:DataList>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
                SelectCommand="SELECT TOP (6) blogID, blogTitle, blogContent, blogTime, SortID, keyword FROM blogs WHERE (blogID &lt;&gt; @blogID) ORDER BY blogTime DESC">
            <SelectParameters>
                <asp:Parameter DefaultValue="LinkUp" Name="blogID" Type="String" />
            </SelectParameters>
        </asp:SqlDataSource>
    

</asp:Content>
